﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Metro.Kashikoi.Web.HtmlHelpers
{
    public static class MessageHelper
    {
        public static MvcHtmlString ErrorMessage(this HtmlHelper htmlHelper, string message)
        {
            if (string.IsNullOrEmpty(message)) return MvcHtmlString.Empty;
            MvcHtmlString encoded = new MvcHtmlString("<span class='validation-summary-errors'>" + message + "</span>");
            return encoded;
        }

    }
}